#ifndef __BIG5_H__
#define __BIG5_H__

#include "Types.h"

#ifdef __cplusplus
extern "C" {
#endif

// Scan Unicode(UCS2) string and convert into BIG5 string
int  ut_UnicodeToBIG5(char* szBig5, const UInt16 *szUnicode, int iBufSize);

// Scan UTF-8 string and convert into BIG5 string
int  ut_UTF8ToBIG5(char* szBig5, const char* szUtf8, int iBufSize);

// Retrieve the notation og one big5 char
int  ut_BIG5ToNotation(char *NA, char *NB, char *NC, char *ND, char* pBig5, int ifilter);

// check if it is 1st(hi) byte of BIG5 codes
BOOL ut_IsBIG5Code(const char* pszCode);

// check if it is a byte of BIG5 codes
// return 0 for it is a ASCII byte
//		  1 for 1st byte of BIG5
//		  2 for 2rd byte of BIG5
int ut_IsBIG5Char(const char *szStr, int iIndex);
	
#ifdef __cplusplus
}
#endif

#endif
